<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="./layui/css/layui.css">
	<script type="text/javascript" src='./layui/layui.js'></script>
	
</head>
<body>
	<p>点我啊</p>
	<script type="text/javascript">
		layui.use(['layer','jquery'], function(){

		  var layer = layui.layer;
		  var $ = layui.jquery;

		  $('p').click(function(event) {
		  	//layer模块的msg方法
		  	//layer.msg('hello');
		  	

		  	/*//询问框
			layer.confirm('您是如何看待前端开发？', {
			  btn: ['重要','奇葩'] //按钮
			}, function(){
			  layer.msg('的确很重要', {icon: 1});
			}, function(){
			  layer.msg('也可以这样', {
			    time: 20000, //20s后自动关闭
			    btn: ['明白了', '知道了']
			  });
			});*/


		  	//layer.msg('的确很重要', {icon: 4});
		  	
		  	/*layer.msg('玩命提示中');
			//墨绿深蓝风
			layer.alert('墨绿风格，点击确认看深蓝', {
			  skin: 'layui-layer-molv' //样式类名
			  ,closeBtn: 2
			}, function(){
			  layer.alert('偶吧深蓝style', {
			    skin: 'layui-layer-lan'
			    ,closeBtn: 0
			    ,anim: 1 //动画类型
			  });
			});*/


		  	/*layer.open({
			  type: 1,
			  title: false,
			  closeBtn: 0,
			  shadeClose: true,
			  skin: 'yourclass',
			  content: '自定义HTML内容'
			});*/


		  	layer.msg('玩命卖萌中', function(){
			//关闭后的操作
			});



		  });
		  
		  
		});  

	</script>
</body>
</html>